<template>
  <div class="container">
    <h1 class="title">{{msg.title}}</h1>
    <hr>
    <div v-html="msg.content" class="content"></div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      msg: {}
    };
  },
  created() {
    this.getDesc();
  },
  methods: {
    getDesc() {
      this.$http
        .get("api/goods/getdesc/" + this.$route.params.id)
        .then(result => {
          if (result.body.status === 0) {
            this.msg = result.body.message[0];
          }
        });
    }
  }
};
</script>
<style lang="scss">
.container {
    padding:10px;
    margin-bottom:60px;
  .title {
    font-size: 16px;
    text-align: center;
    color: blue;
    margin: 10px;
  }
  .content{
      img{
          width:100%;
      }
  }
}
</style>
